import request from "@/utils/request";

//分页查询
export const queryPageApi = (data) => request.get("/users", { params: data });

export const addApi = (data) => request.post("/users", data);

export const queryByIdApi = (id) => request.get(`/users/${id}`);
export const updateApi = (data) => request.put("/users", data);
export const deleteApi = (id) => request.delete(`/users/${id}`);
